package com.zhiliao.common.base;

import org.springframework.ui.Model;

import java.sql.SQLException;

/**
 * Description:
 *
 * @author qirong
 * @create 2018-10-26
 */
public abstract class BaseController<T> {

    /**
     * 首页方法
     * @param pageNumber
     * @param pageSize
     * @param pojo
     * @param model
     * @return
     */
   public abstract String index(Integer pageNumber, Integer pageSize, T pojo, Model model);

    /**
     * 输入页面
     * @param id
     * @param model
     * @return
     */
     public abstract String input(Integer id, Model model);

    /**
     * 保存方法
     * @param pojo
     * @return
     * @throws SQLException
     */
     public  abstract  String save(T pojo) throws SQLException;

    /**
     * 删除方法
     * @param ids
     * @return
     * @throws SQLException
     */
     public abstract String delete(Integer[] ids) throws SQLException;
}
